<template>
    <el-container>
        <el-header>
            <pug-header></pug-header>
        </el-header>
        <el-container class="pug-container-cnt">
            <el-aside class="pug-el-aside">
                <pug-menu></pug-menu>
            </el-aside>
            <pug-tag-list></pug-tag-list>
            <el-main class="pug-el-main" :style="{ left: $store.state.menu.slideWidth }">
                <div class="pug-contentbox">
                    <router-view v-slot="{Component}">
                        <transition name="fade">
                            <keep-alive :max="10">
                                <component :is="Component"></component>
                            </keep-alive>
                        </transition>
                    </router-view>
                </div>
            </el-main>
        </el-container>
    </el-container>
</template>

<script setup>
import { PugHeader, PugMenu, PugTagList } from './components'
</script>

<style>
    .pug-el-main{position: fixed;right: 0;height: 100vh;padding-bottom:120px;background:#f0f2f5;top:90px;}
    .pug-el-main::-webkit-scrollbar{width: 0px;background:#999;} 
    .pug-el-aside{
        width: 208px!important;
        transition: all 200ms;
    }

    .fade-enter-from{
        opacity: 0;
    }

    .fade-enter-to{
        opacity: 1;
    }

    .fade-leave-from{
        opacity: 1;
    }

    .fade-leave-to{
        opacity: 0;
    }

    .fade-enter-active,
    .fade-leave-active{
        transition: all 200ms;
    }

    .fade-enter-active{
        transition-delay: 200ms;
    }
</style>